package com.nnnu.wsnackshop.pojo.vo;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.time.LocalDateTime;
import java.util.List;

@Data
@Schema(description = "分类VO")
public class CategoryVO {
    @Schema(description = "分类ID")
    private Integer id;

    @Schema(description = "分类名称")
    private String name;

    @Schema(description = "父分类ID")
    private Integer parentId;

    @Schema(description = "父分类名称")
    private String parentName;

    @Schema(description = "分类描述")
    private String description;

    @Schema(description = "分类图标URL")
    private String iconUrl;

    @Schema(description = "排序字段")
    private Integer sort;

    @Schema(description = "状态（0-禁用，1-启用）")
    private Integer status;

    @Schema(description = "创建时间")
    private LocalDateTime createAt;

    @Schema(description = "修改时间")
    private LocalDateTime updateAt;

    @Schema(description = "子分类列表")
    private List<CategoryVO> children;
}
